<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>订单 - Mall Docs</title>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>
        <div class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="../..">Mall Docs</a>
                <!-- Expander button -->
                <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <!-- Expanded navigation -->
                <div id="navbar-collapse" class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li class="navitem">
                                <a href="../.." class="nav-link">Home</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../../user/user/" class="dropdown-item">Main</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">Mall <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../" class="dropdown-item">首页</a>
</li>
                                    
<li>
    <a href="../coupon/" class="dropdown-item">优惠券</a>
</li>
                                    
<li>
    <a href="../goods/" class="dropdown-item">产品</a>
</li>
                                    
<li>
    <a href="../search/" class="dropdown-item">搜索</a>
</li>
                                    
<li>
    <a href="../cart/" class="dropdown-item">购物车</a>
</li>
                                    
<li>
    <a href="../address/" class="dropdown-item">地址</a>
</li>
                                    
<li>
    <a href="../activity/" class="dropdown-item">活动</a>
</li>
                                    
<li>
    <a href="./" class="dropdown-item active">订单</a>
</li>
                                    
<li>
    <a href="../my/" class="dropdown-item">个人中心</a>
</li>
                                    
<li>
    <a href="../collect/" class="dropdown-item">收藏</a>
</li>
                                    
<li>
    <a href="../aftersale/" class="dropdown-item">售后</a>
</li>
                                    
<li>
    <a href="../vip/" class="dropdown-item">会员</a>
</li>
                                    
<li>
    <a href="../charge/" class="dropdown-item">充值</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">管理后台 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../../admin/user/" class="dropdown-item">用户</a>
</li>
                                    
<li>
    <a href="../../admin/goods/" class="dropdown-item">商品</a>
</li>
                                    
<li>
    <a href="../../admin/ad/" class="dropdown-item">推广</a>
</li>
                                    
<li>
    <a href="../../admin/topic/" class="dropdown-item">活动</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav ml-auto">
                        <li class="nav-item">
                            <a href="#" class="nav-link" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li class="nav-item">
                                <a rel="prev" href="../activity/" class="nav-link">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li class="nav-item">
                                <a rel="next" href="../my/" class="nav-link">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                    <div class="col-md-3"><div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
    <div class="navbar-header">
        <button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
            <span class="fa fa-angle-down"></span>
        </button>
    </div>

    
    <div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
        <ul class="nav flex-column">
            
            <li class="nav-item" data-level="1"><a href="#_1" class="nav-link">订单相关接口</a>
              <ul class="nav flex-column">
            <li class="nav-item" data-level="2"><a href="#_2" class="nav-link">修订记录</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_3" class="nav-link">背景</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_4" class="nav-link">产品说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_5" class="nav-link">关键流程说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_6" class="nav-link">接口说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
              </ul>
            </li>
        </ul>
    </div>
</div></div>
                    <div class="col-md-9" role="main">

<h1 id="_1">订单相关接口</h1>
<div class="toc">
<ul>
<li><a href="#_1">订单相关接口</a><ul>
<li><a href="#_2">修订记录</a></li>
<li><a href="#_3">背景</a></li>
<li><a href="#_4">产品说明</a></li>
<li><a href="#_5">关键流程说明</a></li>
<li><a href="#_6">接口说明</a><ul>
<li><a href="#10">1.0 提交订单</a><ul>
<li><a href="#_7">接口说明</a></li>
<li><a href="#_8">请求说明</a></li>
<li><a href="#_9">输入参数</a></li>
<li><a href="#_10">错误说明</a></li>
<li><a href="#_11">返回实例</a></li>
</ul>
</li>
<li><a href="#11">1.1 取消订单</a><ul>
<li><a href="#_12">接口说明</a></li>
<li><a href="#_13">请求说明</a></li>
<li><a href="#_14">输入参数</a></li>
<li><a href="#_15">错误说明</a></li>
<li><a href="#_16">返回实例</a></li>
</ul>
</li>
<li><a href="#12">1.2 支付订单</a><ul>
<li><a href="#_17">接口说明</a></li>
<li><a href="#_18">请求说明</a></li>
<li><a href="#_19">输入参数</a></li>
<li><a href="#_20">错误说明</a></li>
<li><a href="#_21">返回实例</a></li>
</ul>
</li>
<li><a href="#11_1">1.1 订单列表</a><ul>
<li><a href="#_22">接口说明</a></li>
<li><a href="#_23">请求说明</a></li>
<li><a href="#_24">输入参数</a></li>
<li><a href="#_25">错误说明</a></li>
<li><a href="#_26">返回实例</a></li>
</ul>
</li>
<li><a href="#12_1">1.2 订单详情</a><ul>
<li><a href="#_27">接口说明</a></li>
<li><a href="#_28">请求说明</a></li>
<li><a href="#_29">输入参数</a></li>
<li><a href="#_30">错误说明</a></li>
<li><a href="#_31">返回实例</a></li>
</ul>
</li>
<li><a href="#12_2">1.2 取消订单</a><ul>
<li><a href="#_32">接口说明</a></li>
<li><a href="#_33">请求说明</a></li>
<li><a href="#_34">输入参数</a></li>
<li><a href="#_35">错误说明</a></li>
<li><a href="#_36">返回实例</a></li>
</ul>
</li>
<li><a href="#13">1.3  重新支付订单</a><ul>
<li><a href="#_37">接口说明</a></li>
<li><a href="#_38">请求说明</a></li>
<li><a href="#_39">输入参数</a></li>
<li><a href="#_40">错误说明</a></li>
<li><a href="#_41">返回实例</a></li>
</ul>
</li>
<li><a href="#14">1.4  确认收货接口</a><ul>
<li><a href="#_42">接口说明</a></li>
<li><a href="#_43">请求说明</a></li>
<li><a href="#_44">输入参数</a></li>
<li><a href="#_45">错误说明</a></li>
<li><a href="#_46">返回实例</a></li>
</ul>
</li>
<li><a href="#14_1">1.4  删除订单接口</a><ul>
<li><a href="#_47">接口说明</a></li>
<li><a href="#_48">请求说明</a></li>
<li><a href="#_49">输入参数</a></li>
<li><a href="#_50">错误说明</a></li>
<li><a href="#_51">返回实例</a></li>
</ul>
</li>
<li><a href="#15">1.5  评价接口</a><ul>
<li><a href="#_52">接口说明</a></li>
<li><a href="#_53">请求说明</a></li>
<li><a href="#post-json">输入参数(post json)</a></li>
<li><a href="#_54">错误说明</a></li>
<li><a href="#_55">返回实例</a></li>
</ul>
</li>
<li><a href="#16">1.6  待评价订单商品信息</a><ul>
<li><a href="#_56">接口说明</a></li>
<li><a href="#_57">请求说明</a></li>
<li><a href="#_58">输入参数</a></li>
<li><a href="#_59">错误说明</a></li>
<li><a href="#_60">返回实例</a></li>
</ul>
</li>
<li><a href="#17">1.7 催单接口</a><ul>
<li><a href="#_61">接口说明</a></li>
<li><a href="#_62">请求说明</a></li>
<li><a href="#_63">输入参数</a></li>
<li><a href="#_64">错误说明</a></li>
<li><a href="#_65">返回实例</a></li>
</ul>
</li>
<li><a href="#18">1.8 重新购买</a><ul>
<li><a href="#_66">接口说明</a></li>
<li><a href="#_67">请求说明</a></li>
<li><a href="#_68">输入参数</a></li>
<li><a href="#_69">错误说明</a></li>
<li><a href="#_70">返回实例</a></li>
</ul>
</li>
<li><a href="#19">1.9 订单重新支付</a><ul>
<li><a href="#_71">接口说明</a></li>
<li><a href="#_72">请求说明</a></li>
<li><a href="#_73">输入参数</a></li>
<li><a href="#_74">错误说明</a></li>
<li><a href="#_75">返回实例</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="_2">修订记录</h2>
<hr />
<table>
<thead>
<tr>
<th>日期</th>
<th>作者</th>
<th>修订类型</th>
<th>修订内容</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>2020年07月03日</td>
<td>冷立纲</td>
<td>A</td>
<td>新增设计方案</td>
<td>1.0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>【修订类型：A-新增  M-修改 D-删除】</p>
</blockquote>
<h2 id="_3">背景</h2>
<p>订单相关接口</p>
<h2 id="_4">产品说明</h2>
<h2 id="_5">关键流程说明</h2>
<h2 id="_6">接口说明</h2>
<h4 id="10">1.0 提交订单</h4>
<h5 id="_7">接口说明</h5>
<p>提交订单并支付</p>
<h5 id="_8">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/submit</td>
</tr>
</tbody>
</table>
<h5 id="_9">输入参数</h5>
<p><em>订单信息</em></p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">cartId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">购物车ID</td>
<td align="left">只结算指定购物车结算项的产品，不填则结算所有选中产品</td>
</tr>
<tr>
<td align="left">addressId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">地理位置ID</td>
<td align="left">不填则获取下面的地址信息建立地址</td>
</tr>
<tr>
<td align="left">couponId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">优惠券ID</td>
<td align="left">指定使用的优惠券</td>
</tr>
<tr>
<td align="left">userCouponId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">用户优惠券ID</td>
<td align="left">指定用户已领取的优惠券ID</td>
</tr>
<tr>
<td align="left">message</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">备注信息</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">grouponRulesId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">团购规则ID</td>
<td align="left">预留团购，暂时用不到</td>
</tr>
<tr>
<td align="left">grouponLinkId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">团购ID</td>
<td align="left">预留团购，暂时用不到</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">根据结算页拉取的支付项填写，小程序可以固定写死 WX_MP</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">根据结算页拉取的支付项填写，小程序可以固定写死 WX_MP</td>
</tr>
<tr>
<td align="left">useIntegral</td>
<td align="center">否</td>
<td align="left">long</td>
<td align="left">使用积分数量</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<p><em>地址信息</em> (若上面 addressId 为空，则地址信息为必填项)</p>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">name</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">名称</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">province</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">省份</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">city</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">城市</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">county</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">乡</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">addressDetail</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">详细地址</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">areaCode</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">地址编码</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">postalCode</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">邮政编码</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">tel</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">电话</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">isDefault</td>
<td align="center">是</td>
<td align="left">boolean</td>
<td align="left">是否默认地址</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_10">错误说明</h5>
<h5 id="_11">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            &quot;payOrderId&quot;:xxxx,//订单号
            &quot;callPayInfo&quot;:xxxxx, //各平台对应支付信息 
       }
    }

</code></pre>

<h4 id="11">1.1 取消订单</h4>
<h5 id="_12">接口说明</h5>
<p>根据订单ID获取订单详细信息</p>
<h5 id="_13">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/cancel</td>
</tr>
</tbody>
</table>
<h5 id="_14">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单详细信息</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_15">错误说明</h5>
<h5 id="_16">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

       }
    }

</code></pre>

<h4 id="12">1.2 支付订单</h4>
<h5 id="_17">接口说明</h5>
<p>根据订单ID获取订单详细信息</p>
<h5 id="_18">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/prepay</td>
</tr>
</tbody>
</table>
<h5 id="_19">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left">订单号</td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">根据结算页拉取的支付项填写，小程序可以固定写死 WX_MP</td>
</tr>
</tbody>
</table>
<h5 id="_20">错误说明</h5>
<h5 id="_21">返回实例</h5>
<pre><code class="json">
   {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            &quot;payOrderId&quot;:xxxx,//订单号
            &quot;callPayInfo&quot;:xxxxx, //各平台对应支付信息 
       }
    }

</code></pre>

<h4 id="11_1">1.1 订单列表</h4>
<h5 id="_22">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_23">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/list</td>
</tr>
</tbody>
</table>
<h5 id="_24">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">showType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单列表</td>
<td align="left">显示类型，0，全部订单； 1，待付款； 2，待发货； 3，待收货； 4，待评价。 5，已完成</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">分页</td>
<td align="left">默认1</td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">限制单页条数</td>
<td align="left">默认10</td>
</tr>
</tbody>
</table>
<h5 id="_25">错误说明</h5>
<h5 id="_26">返回实例</h5>
<pre><code class="json">
{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 10,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 5,  //订单ID
                &quot;orderSn&quot;: &quot;20200613513109&quot;,   //订单SN
                &quot;actualPrice&quot;: 1998.00, //订单金额
                &quot;orderStatusText&quot;: &quot;已取消(系统)&quot;, //订单状态描述
                &quot;handleOption&quot;: {
                    &quot;cancel&quot;: false,  //是否可取消
                    &quot;delete&quot;: true, //是否可删除
                    &quot;pay&quot;: false, //是否可支付
                    &quot;comment&quot;: false, //是否可评价
                    &quot;confirm&quot;: false, //是否可确认收货
                    &quot;refund&quot;: false, //是否可退货
                    &quot;rebuy&quot;: false, //是否可重新购买
                    &quot;aftersale&quot;: false  //是否可售后
                },
                &quot;aftersaleStatus&quot;: 0,  //售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
                &quot;goodsList&quot;: [], //产品列表
                &quot;groupin&quot;: false  //是否团购
            }      
         ],
        &quot;end&quot;: true,
        &quot;startIndex&quot;: 0,
        &quot;empty&quot;: false
    }
}
</code></pre>

<h4 id="12_1">1.2 订单详情</h4>
<h5 id="_27">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_28">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/detail</td>
</tr>
</tbody>
</table>
<h5 id="_29">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_30">错误说明</h5>
<h5 id="_31">返回实例</h5>
<pre><code class="json">
{
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;orderInfo&quot;: {  //订单信息
            &quot;id&quot;: 47, //订单ID
            &quot;orderSn&quot;: &quot;20200711391009&quot;, //订单sN
            &quot;message&quot;: &quot;&quot;, //留言
            &quot;addTime&quot;: &quot;2020-07-11 18:48:01&quot;, //添加时间
            &quot;payTime&quot;: &quot;2020-07-11 18:48:01&quot;, //支付时间
            &quot;consignee&quot;: &quot;string&quot;, //收货人
            &quot;mobile&quot;: &quot;15201008961&quot;, //手机号
            &quot;address&quot;: &quot;stringstringstring string&quot;,  //收货地址
            &quot;goodsPrice&quot;: 78.00,  //产品价格
            &quot;couponPrice&quot;: 0.00, //优惠券价格
            &quot;freightPrice&quot;: 8.00, //运费
            &quot;actualPrice&quot;: 86.00, //实际支付
            &quot;orderStatusText&quot;: &quot;未付款&quot;,  //付款状态描述
            &quot;handleOption&quot;: {  //处理状态
                &quot;cancel&quot;: true,  //是否可取消
                &quot;delete&quot;: false, //是否可删除
                &quot;pay&quot;: true,  //是否可支付
                &quot;comment&quot;: false, //是否可评论
                &quot;confirm&quot;: false,  //是否可确认收货
                &quot;refund&quot;: false, //是否可退货
                &quot;rebuy&quot;: false, //是否可重新购买
                &quot;aftersale&quot;: false, //是否可售后
                &quot;remind&quot;: false, //是否可催单
                &quot;logistic&quot;: true //是否可查看物流
            },
            &quot;aftersaleStatus&quot;: 0,  //售后状态，0是可申请，1是用户已申请，2是管理员审核通过，3是管理员退款成功，4是管理员审核拒绝，5是用户已取消
            &quot;expCode&quot;: null, //物流公司编码
            &quot;expName&quot;: null, //物流名称
            &quot;expNo&quot;: null //物流单号
        },
        &quot;orderGoods&quot;: [  //订单产品信息
            {
                &quot;id&quot;: 47,  //产品ID
                &quot;orderId&quot;: 47, //订单ID
                &quot;goodsId&quot;: 1006014, //商品ID
                &quot;goodsName&quot;: &quot;双宫茧桑蚕丝被 子母被&quot;, //名称
                &quot;goodsSn&quot;: &quot;1006014&quot;, //SN
                &quot;productId&quot;: 11, //货品ID
                &quot;number&quot;: 1, //数量
                &quot;price&quot;: 1399.00, //价格
                &quot;specifications&quot;: [  //规格
                    &quot;标准&quot;
                ],
                &quot;handleOption&quot;: {  //操作按钮
                    &quot;apply&quot;: false, //申请售后
                    &quot;hotline&quot;: false, //客服热线
                    &quot;cancel&quot;: false //取消售后
                },
                &quot;aftersaleId&quot;:123,//售后ID
                &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/2b537159f0f789034bf8c4b339c43750.png&quot;,  //图片
                &quot;comment&quot;: 0,  //评论数
                &quot;addTime&quot;: &quot;2020-07-11 11:39:02&quot;, //添加时间
                &quot;updateTime&quot;: &quot;2020-07-11 11:39:02&quot;, //更新时间
                &quot;deleted&quot;: false //是否已删除
            }
        ],
        &quot;expressInfo&quot;: {   //物流信息
            &quot;state&quot;: &quot;0&quot;,
            &quot;success&quot;: true,
            &quot;reason&quot;: &quot;暂无轨迹信息&quot;,  //原因
            &quot;logisticCode&quot;: &quot;1234561&quot;, //快递号
            &quot;shipperCode&quot;: &quot;ZTO&quot;, //编码
            &quot;traces&quot;: [],   //轨迹
            &quot;ebusinessID&quot;: &quot;1638638&quot;,  //厂商b
            &quot;shipperName&quot;: &quot;中通快递&quot;,  //快递名称
            &quot;LogisticCode&quot;: &quot;1234561&quot;,
            &quot;ShipperCode&quot;: &quot;ZTO&quot;,
            &quot;Traces&quot;: [],
            &quot;State&quot;: &quot;0&quot;,
            &quot;EBusinessID&quot;: &quot;1638638&quot;,
            &quot;Success&quot;: true,
            &quot;Reason&quot;: &quot;暂无轨迹信息&quot;
        }
    }
}

</code></pre>

<h4 id="12_2">1.2 取消订单</h4>
<h5 id="_32">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_33">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/cancel</td>
</tr>
</tbody>
</table>
<h5 id="_34">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_35">错误说明</h5>
<h5 id="_36">返回实例</h5>
<pre><code class="json">
{
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}

</code></pre>

<h4 id="13">1.3  重新支付订单</h4>
<h5 id="_37">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_38">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/prepay</td>
</tr>
</tbody>
</table>
<h5 id="_39">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">payType</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">支付方式</td>
<td align="left">根据结算页拉取的支付项填写，小程序可以固定写死 WX_MP</td>
</tr>
</tbody>
</table>
<h5 id="_40">错误说明</h5>
<h5 id="_41">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            &quot;payOrderId&quot;:xxxx,//订单号
            &quot;callPayInfo&quot;:xxxxx, //各平台对应支付信息 
       }
    }



</code></pre>

<h4 id="14">1.4  确认收货接口</h4>
<h5 id="_42">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_43">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/confirm</td>
</tr>
</tbody>
</table>
<h5 id="_44">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_45">错误说明</h5>
<h5 id="_46">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            
       }
    }



</code></pre>

<h4 id="14_1">1.4  删除订单接口</h4>
<h5 id="_47">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_48">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/delete</td>
</tr>
</tbody>
</table>
<h5 id="_49">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_50">错误说明</h5>
<h5 id="_51">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
            
       }
    }



</code></pre>

<h4 id="15">1.5  评价接口</h4>
<h5 id="_52">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_53">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/comment</td>
</tr>
</tbody>
</table>
<h5 id="post-json">输入参数(post json)</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderGoodsId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单商品ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">content</td>
<td align="center">是</td>
<td align="left">string</td>
<td align="left">商品内容信息</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">star</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">评价星级</td>
<td align="left">1-5</td>
</tr>
<tr>
<td align="left">picUrls</td>
<td align="center">是</td>
<td align="left">string[]</td>
<td align="left">图片信息</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<pre><code class="json">    {
      &quot;anonymous&quot;: true,  //是否匿名
      &quot;content&quot;: &quot;string&quot;, //内容
      &quot;picUrls&quot;: [ //图片数组
        {
            &quot;url&quot;:&quot;http://www.baidu.com&quot;, //url
            &quot;type&quot;:&quot;jpg/jpeg&quot; //内容类型(可能是视频)
        }
      ],
      &quot;star&quot;: 0, //星级
      &quot;type&quot;: 0,  //如果是0，则查询商品评论；如果是1，则查询专题
      &quot;valueId&quot;: 0  //商品或专题ID。如果type是0，则是商品ID；如果type是1，则是专题ID
    }
</code></pre>

<h5 id="_54">错误说明</h5>
<h5 id="_55">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

    }
}

</code></pre>

<h4 id="16">1.6  待评价订单商品信息</h4>
<h5 id="_56">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_57">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/goods</td>
</tr>
</tbody>
</table>
<h5 id="_58">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_59">错误说明</h5>
<h5 id="_60">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;id&quot;: 47,
        &quot;orderId&quot;: 47,
        &quot;goodsId&quot;: 1006014, //产品ID
        &quot;goodsName&quot;: &quot;双宫茧桑蚕丝被 子母被&quot;, // 产品名称
        &quot;goodsSn&quot;: &quot;1006014&quot;, //产品SN
        &quot;productId&quot;: 11, //商品ID
        &quot;number&quot;: 1, // 计数
        &quot;price&quot;: 1399.00, //商品价格
        &quot;specifications&quot;: [  //规格
            &quot;标准&quot;
        ],
        &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/2b537159f0f789034bf8c4b339c43750.png&quot;,  //图片
        &quot;comment&quot;: 0, //订单商品评论，如果是-1，则超期不能评价；如果是0，则可以评价；如果其他值，则是comment表里面的评论ID。
        &quot;addTime&quot;: &quot;2020-07-11 11:39:02&quot;,  //添加时间
        &quot;updateTime&quot;: &quot;2020-07-11 11:39:02&quot;, //更新时间
        &quot;deleted&quot;: false
    }
}

</code></pre>

<h4 id="17">1.7 催单接口</h4>
<h5 id="_61">接口说明</h5>
<p>催单</p>
<h5 id="_62">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/remind</td>
</tr>
</tbody>
</table>
<h5 id="_63">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单详细信息</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_64">错误说明</h5>
<h5 id="_65">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {

       }
    }

</code></pre>

<h4 id="18">1.8 重新购买</h4>
<h5 id="_66">接口说明</h5>
<p>重新购买</p>
<h5 id="_67">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">post</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/rebuy</td>
</tr>
</tbody>
</table>
<h5 id="_68">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单详细信息</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_69">错误说明</h5>
<h5 id="_70">返回实例</h5>
<pre><code class="json">
   {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;addressId&quot;: 3,   //地址ID
        &quot;couponId&quot;: 2, //优惠券ID
        &quot;userCouponId&quot;: 5, //用户优惠券ID
        &quot;cartId&quot;: 0, // 购物车ID
        &quot;grouponRulesId&quot;: 0, //团购规则
        &quot;grouponPrice&quot;: 0, //团购价
        &quot;checkedAddress&quot;: {   //地址的选择
            &quot;id&quot;: 3,  //地址ID
            &quot;name&quot;: &quot;我&quot;, //地址名称
            &quot;userId&quot;: 11445, //用户ID
            &quot;province&quot;: &quot;北京市&quot;, //省
            &quot;city&quot;: &quot;市辖区&quot;, //市
            &quot;county&quot;: &quot;朝阳区&quot;, //朝阳
            &quot;addressDetail&quot;: &quot;211&quot;, //地址详情
            &quot;areaCode&quot;: &quot;110105&quot;, //地址编码
            &quot;postalCode&quot;: null, //邮政编码
            &quot;tel&quot;: &quot;15201008961&quot;, //手机号
            &quot;isDefault&quot;: true, //是否默认
            &quot;addTime&quot;: &quot;2020-06-29 14:46:15&quot;, //创建时间
            &quot;updateTime&quot;: &quot;2020-06-29 14:46:15&quot;, //更新时间
            &quot;deleted&quot;: false //是否已删除
        },
        &quot;availableCouponLength&quot;: 2, //可用优惠券数量
        &quot;goodsTotalPrice&quot;: 237.00, //产品总价格
        &quot;freightPrice&quot;: 0,  //运费
        &quot;couponPrice&quot;: 10.00, //优惠金额
        &quot;orderTotalPrice&quot;: 227.00, //订单总金额
        &quot;actualPrice&quot;: 227.00, //实付金额 
        &quot;checkedGoodsList&quot;: [  //结算商品列表
            {
                &quot;id&quot;: 10,  //ID
                &quot;userId&quot;: 11445, //用户ID
                &quot;goodsId&quot;: 1057036, //产品ID
                &quot;goodsSn&quot;: &quot;1057036&quot;, //产品SN
                &quot;goodsName&quot;: &quot;日式纯色水洗亚麻抱枕&quot;, //产品名称
                &quot;productId&quot;: 71, //商品ID
                &quot;price&quot;: 79.00, //商品价格
                &quot;number&quot;: 3, //商品数量
                &quot;specifications&quot;: [  //规格
                    &quot;标准&quot;
                ],
                &quot;checked&quot;: true, //是否选中
                &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;, //缩略图
                &quot;addTime&quot;: &quot;2020-07-03 23:11:14&quot;, //添加时间
                &quot;updateTime&quot;: &quot;2020-07-03 23:35:09&quot;, //更新时间
                &quot;deleted&quot;: false //是否已删除
            }
        ],
    &quot;payTypes&quot;: [  //支付方式列表
            {
                &quot;typeName&quot;: &quot;balance&quot;,
                &quot;comment&quot;: &quot;余额支付&quot;,
                &quot;thumbnail&quot;: null
            },
            {
                &quot;typeName&quot;: &quot;ALIPAYCASH&quot;,
                &quot;comment&quot;: &quot;支付宝支付&quot;,
                &quot;thumbnail&quot;: null
            },
            {
                &quot;typeName&quot;: &quot;WX_APP&quot;,
                &quot;comment&quot;: &quot;微信支付&quot;,
                &quot;thumbnail&quot;: null
            }
        ]   
    }
}


</code></pre>

<h4 id="19">1.9 订单重新支付</h4>
<h5 id="_71">接口说明</h5>
<p>订单列表信息</p>
<h5 id="_72">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/order/repay</td>
</tr>
</tbody>
</table>
<h5 id="_73">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">订单ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_74">错误说明</h5>
<h5 id="_75">返回实例</h5>
<pre><code class="json">
{
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;actualPrice&quot;:1.23, //实付金额
        &quot;payTypes&quot;:[  //支付方式列表
            {
                &quot;typeName&quot;: &quot;balance&quot;,
                &quot;comment&quot;: &quot;余额支付&quot;,
                &quot;thumbnail&quot;: null
            },
            {
                &quot;typeName&quot;: &quot;ALIPAYCASH&quot;,
                &quot;comment&quot;: &quot;支付宝支付&quot;,
                &quot;thumbnail&quot;: null
            },
            {
                &quot;typeName&quot;: &quot;WX_APP&quot;,
                &quot;comment&quot;: &quot;微信支付&quot;,
                &quot;thumbnail&quot;: null
            }
        ] 
    }
}

</code></pre></div>
            </div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="searchModalLabel">Search</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form>
                    <div class="form-group">
                        <input type="search" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
